Openx api Advertiser statistics call [migrated]

Posted by Sameer on Pro Webmasters See other posts from Pro Webmasters or by Sameer
Published on 2012-03-18T08:29:16Z Indexed on 2012/03/18 18:23 UTC
Read the original article Hit count: 273

Filed under:

I am trying to write a jsp application which will establish the xmlrpc connection with openxapi and return the values. I am using openxapi v1

Here I get the dates through a datepicker and then convert to date format:

`String dateStr = request.getParameter("datum1");
SimpleDateFormat formater = new SimpleDateFormat("dd-MM-yyyy"); Date result1 = formater.parse(dateStr);

String dateStr2 = request.getParameter("datum2"); SimpleDateFormat formater2 = new SimpleDateFormat("dd-MM-yyyy"); Date result2 = formater2.parse(dateStr2);`

Then I call the service provided by openxapi (Advertiser Daily Statistics) (sessionID, advertiserID, from date, to date)

Object[] objects1=(Object[])client.execute("advertiserDailyStatistics", new Object[]{sessionId,3,result1,result2});

© Pro Webmasters or respective owner